<?php require APP_ROOT.'public/top.php';?>

<div class="admincp-container unfold">
<div data-v-7f4a8000="" class="g-bd f-cb">
  <?php require APP_ROOT.'public/left.php';?>
  <div class="g-mn">
    <div class="g-ct">
      <div class="account-manage">
        <h3 class="g-ct-title">我的账户</h3>
      </div>
      <div class="right-nav">
        <link href="public/static/css/index.css" rel="stylesheet" type="text/css">
        <link href="public/static/css/perfect-scrollbar.min.css" rel="stylesheet" type="text/css">
        <link href="public/static/css/purebox.css" rel="stylesheet" type="text/css">
        <link href="public/static/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="public/static/js/jquery.js"></script> 
        <script type="text/javascript" src="public/static/js/jquery-ui/jquery-ui.min.js"></script> 
        <script type="text/javascript" src="public/static/js/jquery.cookie.js"></script>
        <style>
        .contentWarp_item .section_select .item_comment{
            padding: 83px 0 31px 38px;
        }
        .contentWarp_item .section_select .item {
            
        }
        .contentWarp_item .section_order_select li{
            width: 23%;
        }
        @media only screen and (min-width: 900px) and (max-width: 1761px) {
        	.contentWarp_item{
        		margin-right: 1%;
        	}
        	.contentWarp_item .section_select .icon img{
        		max-width: 74px;
        		max-height: 74px;
        	}
        	.contentWarp_item:nth-child(1){
        		    margin-bottom: 10px;
        	}
        }
           @media only screen and (min-width: 900px) and (max-width: 1312px) {
        	.contentWarp_item .section_select .item{
        		    width: 35%;
        		    margin-bottom: 10px;
        	}
        	
        }
    </style>
        <div class="warpper">
          <div class="" style="padding:20px;">
            <div class="contentWarp_item clearfix">
              <div class="section_select">
                <div class="item item_order">
                  <div class="desc">
                    <span>账户余额</span>
                    <div class="tit"><?php echo $balance;?></div>
                     </div>
                </div>
                <div class="item item_order">
                  <div class="desc">
                    <span>今日消费</span>
                    <div class="tit"><?php echo $jinri_account;?></div> </div>
                   </div>
                <div class="item item_order">
                  <div class="desc">
                    <span>昨日消费</span>
                    <div class="tit"><?php echo $zuori_account;?></div> </div>
                </div>
                <div class="item item_order">
                  <div class="desc">
                    <span>总消费</span>
                    <div class="tit"><?php echo $zong_account;?></div> </div>
                   </div>
                <div class="item item_order">
                  <div class="desc">
                    <span>曝光量</span>
                    <div class="tit">
                      <?php
                      $zxcs=M('originality')->where(array('member_id'=>$member_id))->order('date desc')->sum('zxcs');
                      if($zxcs=='')$zxcs=0;
                      echo (int)$zxcs;
                      ?>
                    </div>
                     </div>
                   </div>
                <div class="item item_order">
                  <div class="desc">
                    <span>点击量</span>
                    <div class="tit">
                    <?php
                      $djcs=M('originality')->where(array('member_id'=>$member_id))->order('date desc')->sum('djcs');
                      if($djcs=='')$djcs=0;
                      echo (int)$djcs;
                      ?>
                    </div> </div>
                   </div>
                <div class="item item_order">
                  <div class="desc">
                    <span>点击率</span>
                    <div class="tit">
                    <?php
                      if($zxcs=='' || $djcs==''){
                        echo '0%';
                      }else{
                      	echo sprintf("%.2f",$djcs/$zxcs*100)."%";
                      }
                      ?>
                    </div> </div>
                   </div>
                <div class="item item_order">
                  <div class="desc">
                  <span>投放模式</span>
                    <div class="tit"><?php $input= M('input')->where(array('input_pid'=>552))->select(); foreach($input as $k=>$v){?>
          <a href="../member/index.php?m=plan&a=index&type_id=63&data[ggms]=<?php echo $v['input_value'];?>" class="change_ad_model js-report-type active<?php if($data['ggms']==$v['input_value'])echo ' on';?>" style="color:#666;"><?php echo $v['input_name'];?></a>&nbsp;&nbsp;
          <?php }?></div>
                     </div>
                   </div>
              </div>
            </div>
            
            <div style="height:0px;"></div>
            
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/echarts.min.js"></script>
    <style>
        #someline {			
            width: calc(100% - 16px);
            height: 300px; z-index:1000;
        }
    </style>
    <script>
      $(document).ready(function(){
        var chart = document.getElementById("someline");
        var echart = echarts.init(chart);
        option = {
            title: {
                text: ''
            },
            tooltip: {
                trigger: 'axis'
            },
            legend: {
                data: ['消费金额']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            toolbox: {
                feature: {
                    saveAsImage: {}
                }
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['<?php echo implode('\',\'',get_week());?>']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    name: '消费金额',
                    type: 'line',
                    stack: '总量',
                    data: [<?php echo implode(',',consumption_price($member_id));?>]
                }
            ]
        };



        echart.setOption(option);
      });
    </script>
<div id="someline"></div>

            
            
            
            
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<?php require APP_ROOT.'public/bottom.php';?>
